package cn.iocoder.devlop.module.annual.report.forinvestment.dal;

import java.util.*;

import cn.iocoder.devlop.framework.common.pojo.PageResult;
import cn.iocoder.devlop.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.devlop.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.devlop.framework.mybatis.core.query.MPJLambdaWrapperX;
import cn.iocoder.devlop.module.annual.report.forinvestment.dal.dataobject.ForinvestmentDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 企业年报对外投资信息 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface ForinvestmentMapper extends BaseMapperX<ForinvestmentDO> {

    default List<ForinvestmentDO> selectListByAncheid(@Param("ancheid") String ancheid){
        MPJLambdaWrapperX<ForinvestmentDO> wrapperX = new MPJLambdaWrapperX<>();
        wrapperX.selectAll(ForinvestmentDO.class)
                .disableSubLogicDel()
                .eq(ForinvestmentDO::getAncheid,ancheid);
        return selectJoinList(ForinvestmentDO.class, wrapperX);
    }
}
